package com.godz.getter.service.Impl;

import com.godz.getter.mapper.SellerMapper;
import com.godz.getter.pojo.Seller;
import com.godz.getter.service.SellerService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SellerServiceImpl implements SellerService {
    //调用Mapper
    private final SellerMapper sellerMapper;

    public SellerServiceImpl(SellerMapper sellerMapper) {
        this.sellerMapper = sellerMapper;
    }

    @Override
    public List<Seller> queryAllSeller() {
        return sellerMapper.queryAllSeller();//自定义查询方法
    }
}
